<template>
  <div id="my-info">
    <div class="head">
      <div class="head-sculpture">
        <img src="~assets/img/profile/tx.jpg" alt="" />
      </div>
      <div class="head-info">
        <div class="name">孤独的根号三</div>
        <div class="account">12131415</div>
      </div>
    </div>
    <div class="main">
      <div class="all-order">
        <span>全部订单</span>
        <span>{{ "查看详情 >" }}</span>
      </div>
      <div class="menu">
        <span class="wait-pay">
          <img src="~assets/img/profile/wait-pay.png" alt="" />
          <span>待支付</span>
        </span>
        <span class="wait-send-goods">
          <img src="~assets/img/profile/wait-send-goods.png" alt="" />
          <span>待发货</span>
        </span>
        <span class="wait-receiving-goods">
          <img src="~assets/img/profile/wait-receiving-goods.png" alt="" />
          <span>待收货</span>
        </span>
        <span class="wait-evaluate">
          <img src="~assets/img/profile/wait-evaluate.png" alt="" />
          <span>待评论</span>
        </span>
        <span class="service">
          <img src="~assets/img/profile/service.png" alt="" />
          <span>退货/售后</span>
        </span>
      </div>
      <div class="list">
        <div class="bill">我的账单</div>
        <div class="browsing-history" @click="goHistory">浏览记录</div>
        <div class="about-us" @click="toAboutUs">关于我们</div>
        <div class="sign-out" @click="signOut">退出登录</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "MyInfo",
  components: {},
  methods: {
    signOut() {
      this.$store.commit("loginState");
      this.$router.push("/profile");
    },
    toAboutUs() {
      this.$router.push("/about");
    },
    goHistory() {
      this.$router.push("/history");
    },
  },
};
</script>

<style scoped>
#my-info {
  background-color: #faf7f7;
}
.nav-bar-center {
  color: #333333;
  font-weight: 560;
}
.head {
  height: 100px;
  background: linear-gradient(to right, #ff8198, #f38ea0);
  display: flex;
  align-items: center;
}
.head .head-sculpture {
  width: 70px;
  height: 70px;
  background-color: #ffffff;
  border-radius: 50%;
  margin: 0 10px 0 15px;
  overflow: hidden;
}
.head .head-sculpture img {
  width: 100%;
  height: 100%;
}
.head .head-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}
.head .head-info .name {
  font-size: 18px;
  padding-bottom: 5px;
}
.head .head-info .account {
  color: #dddbdb;
}
.all-order {
  display: flex;
  justify-content: space-between;
  padding: 17px 10px;
  background-color: #ffffff;
  margin: 10px 0;
  font-size: 13px;
}
.menu {
  display: flex;
  background-color: #ffffff;
  padding: 10px;
}
.menu span {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.list {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  margin-top: 10px;
  color: #676262;
  font-size: 14px;
  font-weight: 600;
}
.list > div {
  height: 50px;
  line-height: 50px;
  margin: 0 20px 0 10px;
  border-bottom: 1px solid #e9e6e6;
  position: relative;
}
.list > div::after {
  content: ">";
  position: absolute;
  right: 5px;
  font-size: 17px;
  color: #a5a0a0;
}
</style>
